import { createRouter, createWebHistory, } from 'vue-router'
import Home from '../view/Home/home.vue'
export const routes = [
  {
    path: '/',
    name: 'home',
    component: Home,
    children: [
      {
        path: '/aver',
        name: 'aver',
        component: () => import("../view/Aver/aver.vue"),
      },
      {
        path: '/excharts',
        name: 'excharts',
        component: () => import("../view/Excharts/excharts.vue"),
      },
      {
        path: '/download',
        name: 'download',
        component: () => import("../view/Download/download.vue"),
      },
    ]
  },
  {
    path: '/aver1',
    name: 'aver1',
    component: () => import("../view/Aver/aver.vue"),
    children: [
      {
        path: '/aver2',
        name: 'aver2',
        component: () => import("../view/Aver/aver.vue"),
      },
    ]
  },
]

const router = createRouter({
  scrollBehavior: () => ({ left: 0, top: 0 }),
  history: createWebHistory(),
  routes,
})


export default router
